<?php
class nodeController extends Base{
	public function index(){

		$this->display('', array('title'=>'Test Page'));
	}

	public function add(){
		$nodes = $this->model->get();
		$data['nodes'] = tree($nodes);
		$data['modules'] = include_once( __APP__.'config/modules.php' );
		$this->view('', $data);
	}
}
